package libs.yzx.zaza.zaza2;

/**
 *
 */
public class LoginPresenter {

    private ILoginView loginView;

    public LoginPresenter(ILoginView loginView) {
        this.loginView = loginView;
    }


    public void doLogin(String account, String pwd) {
        loginView.onStartLogin();

        LoginModel.startLogin("fuck", "shit", new Runnable() {
            public void run() {
                loginView.onLoginSuccess("fuck");
            }
        }, new Runnable() {
            public void run() {
                loginView.onLoginFailed("fuck you");
            }
        });
    }

}
